<?php /* Smarty version Smarty-3.1.18, created on 2017-02-20 12:54:55
         compiled from "Mobile/views/wenda/answer-detail.html" */ ?>
<?php /*%%SmartyHeaderCode:21059831058aa769f768967-46062566%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6de2a10669299cf7b6d74d1766c44fbb027c9ea0' => 
    array (
      0 => 'Mobile/views/wenda/answer-detail.html',
      1 => 1487562040,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '21059831058aa769f768967-46062566',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'item' => 0,
    'list' => 0,
    'val' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_58aa769f7c6227_31898431',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58aa769f7c6227_31898431')) {function content_58aa769f7c6227_31898431($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("public/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<!--回答详情 内容-->
	<div class="wd-answer">
		<div class="p15 border-bottom-sm bj-grey">
			<p><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</p>
		</div>
	</div>
	<div class="wd-answer-details  article-container mt2">
		<div class="article-head border plr15 ptb10 f-cb">
			<a href="javascript:;" class="fl head-img mr5"><img src="<?php echo $_smarty_tpl->tpl_vars['item']->value['head_img'];?>
"/></a>
			<button class="follow fr follow2 iconfont" id="wd_follow" onclick="funWdFollow()">
				<i><?php if ($_smarty_tpl->tpl_vars['item']->value['is_care']) {?>&#xe66f; 已关注<?php } else { ?>&#xe640; 关注<?php }?></i>
			</button>
			<div>
				<a href="javascript:;" class="name"><?php echo $_smarty_tpl->tpl_vars['item']->value['nickname'];?>
<img src="/static/mobile/img/vip/vip1.png"/></a>
				<p class="time"><?php echo $_smarty_tpl->tpl_vars['item']->value['create_time'];?>
</p>
			</div>
		</div>
		<div class="detail-text text border-bottom-lg">
			<p><?php echo $_smarty_tpl->tpl_vars['item']->value['content'];?>
</p>
		</div>
		<div class="answer ptb5 sliding-jq">
			<?php if ($_smarty_tpl->tpl_vars['list']->value) {?>
			<ul>
				<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
?>
				<li class="f-cb ptb10 mlr15">
					<div class="f-cb user-head">
						<img src="<?php echo $_smarty_tpl->tpl_vars['val']->value['head_img'];?>
" class="head fl"/>
						<span class="name fl ml5"><?php echo $_smarty_tpl->tpl_vars['val']->value['nickname'];?>
</span>
						<img src="/static/mobile/img/vip/vip1.png" class="badge fl ml5"/>
						<!--菜单-->
						<div class="comments-menu">
							<p class="time fr"><?php echo $_smarty_tpl->tpl_vars['val']->value['create_time'];?>
</p>
							<!--隐藏菜单-->
						</div>
					</div>
					<div href="javascript:;" class="disblock user-head">
						<div class="text-toggle mtb5 more_box">
							<?php if (($_smarty_tpl->tpl_vars['val']->value['is_reply'])==1) {?><p class="text">回复<a href="javascript:;" class="col-red" id="<?php echo $_smarty_tpl->tpl_vars['val']->value['reply_uid'];?>
"><?php echo $_smarty_tpl->tpl_vars['val']->value['reply_nickname'];?>
</a>：<?php echo $_smarty_tpl->tpl_vars['val']->value['content'];?>
</p><?php }?>
							<?php if (($_smarty_tpl->tpl_vars['val']->value['is_reply'])==0) {?><p class="text"><?php echo $_smarty_tpl->tpl_vars['val']->value['content'];?>
</p><?php }?>
							<?php if (($_smarty_tpl->tpl_vars['val']->value['lengther'])>30) {?><a href="javascript:;" class="all col-red" onclick="funWdLookAll(this)">阅读全部↓</a><?php }?>
						</div>
					</div>
				</li>
				<?php } ?>
			</ul>
			<p class="look-more"><a href="#" class="col-red" onclick="funWdAllComment()">查看全部评论</a></p>
			<?php } else { ?>
			<div class="loading" id="noresults">
                <a href="javascript:;" class="load-success empty-load">
                    <img src="/static/mobile/img/none/no_answer.jpg">
                </a>
            </div>
			<?php }?>
		</div>
	</div>
	<script type="text/javascript" src="/static/js/h5-mobile-common-min-1.0.js"></script>
	<script type="text/javascript">
		//查看全部评论
		function funWdAllComment(){};
		
		//未关注、关注点击事件
		function funWdFollow(){};
		//未关注、关注点击状态
		function funWdFollowChange(str){
			var wd_follow = document.getElementById("wd_follow");
			if(str == 1){
				wd_follow.innerHTML='&#xe66f; 已关注';
				addClass(wd_follow,'follow2');
	            showGuanZhu = false;
			}else{
				wd_follow.innerHTML='&#xe640; 未关注';
				removeClass(wd_follow,'follow2');
	            showGuanZhu = true;
			}			
		}
		//阅读全部、收起
		function funWdLookAll(e){
	        if( $(e).hasClass('active') ){
	            $(e).removeClass('active');
	            $(e).text('阅读全部↓');
	            act1 = $(e).parent().children('.text').animate({'max-height':'65px'},500);
	        }else{
	            $(e).addClass('active');
	            $(e).text('收起↑');
	            act2 = $(e).parent().children('.text').animate({'max-height':'100%'},500);
	        }
		}
		funWdLookAll();
	</script>
<?php echo $_smarty_tpl->getSubTemplate ("public/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
	<?php }} ?>
